import x from './x.js'
import png from './1.png'
console.log(png)
const div = document.getElementById('app')


div.innerHTML = `
<img src="${png}">`

const button = document.createElement('button')
button.innerHTML = '懒加载'
button.onclick = () => {
    const Promise= import('./lazy')
    Promise.then((module) => {
        const fn = module.default
        fn()
    }, () => {
        console.log('模块加载错误')
    })
}
div.appendChild(button)